<template>
  <n-statistic tabular-nums >
    <n-number-animation class="number" :active="true" :duration="3000" ref="numberAnimationInstRef" :from="0" :to="100" />
  </n-statistic>
</template>

<script lang="ts">
import type { NumberAnimationInst } from 'naive-ui'

export default defineComponent({
  setup () {
    const data = reactive({
      numberAnimationInstRef: ref<NumberAnimationInst | null>(null)
    })


    return {
      ...toRefs(data)
    }
  }
})
</script>